package com.wei;

/**
 * 测试类
 *
 * @author :sunwei
 * @description:
 * @date create in 23:17  2021/7/28
 */
public class TestMain {
    
    public static void main(String[] args) {
        SimpleThreadPool pool = new SimpleThreadPool();
        for (int i = 0; i < 100; i++) {
            int finalI = i;
            pool.submit(()-> System.out.println(Thread.currentThread().getName()+" server for "+ finalI));
        }
    }
}
